package com.example.teacherservice.dto;

import lombok.Data;

@Data
public class ClassInfo {
    private Long classId;
    private String className;

    public ClassInfo(Long classId, String className) {
        this.classId = classId;
        // 如果className为null，使用"班级"+id作为默认值
        this.className = className != null ? className : "班级" + classId;
    }
}